void f(int a,int b,int*p,int *q)
{
    *p=a+b;
    *q=a-b;
}


int main()
{
    int a=3,b=4;
    int sum,sub;

    f(a,b,&sum,&sub);

    printf("%d %d\n",sum,sub);

    return 0;
}
